import request from './request'

const reqCaptcha = (data: any) => request('/users/captcha', data)

const reqLogin = (data: any) => request('/users/login', data, 'POST')

const reqGoodsCategoryTree = () => request('/goods/category/tree')

const reqGoodsCategoryAdd = (data: any) => request('/goods/category/add', data, 'POST')

const reqGoodsBrandAdd = (data: any) => request('/goods/brand/add', data, 'POST')

const reshopInfrom = (data: any) => request('/shop/infrom')

const rememberAuthlist = (data: any) => request('/shop/memberAuthlist', data, 'POST')

const repassAudit = (data: any) => request('/shop/passAudit',data, 'POST')

export default {
  reqCaptcha,
  reqLogin,
  reqGoodsCategoryTree,
  reqGoodsCategoryAdd,
  reqGoodsBrandAdd,
  reshopInfrom,
  rememberAuthlist,
  repassAudit
}